import request from '@/utils/request'

export function listUsage(query) {
  return request({
    url: '/drug/usage/list',
    method: 'get',
    params: query
  })
}



export function createUsage(data) {
  return request({
    url: '/drug/usage/create',
    method: 'post',
    data
  })
}

export function readUsage(query) {
  return request({
    url: '/drug/usage/read',
    method: 'get',
    params: query
  })
}

export function updateUsage(data) {
  return request({
    url: '/drug/usage/update',
    method: 'post',
    data
  })
}

export function deleteUsage(data) {
  return request({
    url: '/drug/usage/delete',
    method: 'post',
    data
  })
}

export function listDiag(query) {
  return request({
    url: '/drug/usage/listDiag',
    method: 'get',
    params: query
  })
}

export function deleteDiag(data) {
  return request({
    url: '/drug/usage/deleteDiag',
    method: 'post',
    data
  })
}

